package com.haitao.jt808.entity.gpsdata;

import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @version V1.0
 * @author: shenhaitao
 * @date: 2021/1/5 9:56
 * @description: 服务器补传分包请求 0x8003
 */
@Data
public class Data0x8003 extends DataPackage {

    public DataPackage build(DataPackage msg, int flowId) {
        Header header = getHeader();
        header.setMsgId(0x8003);
        BeanUtils.copyProperties(msg.getHeader(), header);
        //设置
        header.setFlowId(flowId);
        return this;
    }


}
